import { Card } from "../class/Card";
import { Context } from "../class/Context";

export class AttackCard extends Card {
    static cardName = "攻击"
    static description = "攻击一个目标，根据自身物理/法术攻击、攻击目标的物理/法术防御属性计算伤害。"
    static random = 5000;
    outHook(context: Context) {
        const itId = context.nextParam();
        const it = this.masterRole.game.getRole(itId);
        const my = this.masterRole.game.getRole(context.getId())
        my.attack(it);
    }
}